﻿<%@ Page Title="优惠活动信息发布" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="discount_input.aspx.cs" Inherits="discount_input" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            height: 24px;
        }
        .auto-style2 {
            height: 17px;
        }
    </style>
    <link type="text/css" rel="stylesheet" href="CSS/rte.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/wxm_appmsg_list17e4f5.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/emoji.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/hello.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/ueditor.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/codemirror.css" />
    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="js/jquery.rte.js"></script>
    <script type="text/javascript">
        function titlechange(){
            document.getElementById("title").innerText = document.getElementById("ContentPlaceHolder1_textbox1").value;
            document.getElementById("title").innerHTML = document.getElementById("ContentPlaceHolder1_textbox1").value;
        }

        </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-wrapper">
    <div  id="main" class="container" style="width:960px;">
        <div class="containerBox">
            <div class="boxHeader"><h2>优惠活动</h2></div>
            <div class="content" style="width:958px;padding:0px;" >
    <div class="z oh msg-edit">
    <div class="left msg-preview">
        <div class="msg-item-wrapper">
            <div class="msg-item appmsgItem">
                <h4 id="title" class="msg-t">标题</h4>
                <div class="cover" runat="server" id="defaulttip" visible="true">
                    <p class="default-tip">封面图片</p>
                    
                </div>
                <asp:Image Visible="false" ID="img1" runat="server" ImageAlign="bottom" width="320px" style="margin:15px;width:320px"  />
            </div>
            
        </div>
    </div>
    <div style="margin-top: 31px;" class="msg-edit-area">
    <div class="rel msg-editer-wrapper">
        <div class="msg-editer">  
        <label class="block">活动标题</label>
                <asp:TextBox placeholder="优惠活动标题长度请控制在25个汉字以内" CssClass="msg-input" ID="textbox1" runat="server" Text="" Wrap="true"  onchange="titlechange()" />
        <div class="block" style="margin-top:10px;" >
            <asp:RadioButtonList ID="selected" runat="server" RepeatDirection="Horizontal" Style="padding-right:20px;" RepeatLayout="Flow">
                    <asp:ListItem >积分兑换折扣&nbsp&nbsp&nbsp</asp:ListItem>
                    <asp:ListItem  >积分兑换返现</asp:ListItem>
                </asp:RadioButtonList>
        </div>
        <label class="block">封面</label>
        <div>
        <asp:FileUpload ID="FileUpload1" CssClass="msg-input" runat="server" Width="254px" />
        <asp:Button ID="button1" runat="server" Text="上传" style="padding:2px 8px;background-color:#fff;border:1px solid #d3d3d3;color:#666; height: 33px; width: 50px;"   onclick="button1_Click" />
        </div>
        <label class="block">设置的积分值</label> 
                <asp:TextBox ID="textbox3" placeholder="请输入一个整数，设置用户来换取这个优惠的积分。" runat="server" Text="" CssClass="msg-input" />
        <label class="block">兑换或返现的折扣额度：</label>
                <asp:TextBox ID="textbox2" CssClass="msg-input"  runat="server" placeholder="若为折扣，额度在0~1之间；若为返现，则为返现的值。" Text="" />
    
        <label class="block">开始时间：</label>
        <div>
            <asp:DropDownList ID="DropDownList1" runat="server" DataSource="<%#ItemList_year%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList2" runat="server" DataSource="<%#ItemList_month%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList3" runat="server" DataSource="<%#ItemList_day%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList4" runat="server" DataSource="<%#ItemList_hour%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList5" runat="server" DataSource="<%#ItemList_minute%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList6" runat="server" DataSource="<%#ItemList_second%>">
            </asp:DropDownList>
        </div>
        <label class="block"> 结束时间：</label>
        <div>
            <asp:DropDownList ID="DropDownList7" runat="server" DataSource="<%#ItemList_year%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList8" runat="server" DataSource="<%#ItemList_month%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList9" runat="server" DataSource="<%#ItemList_day%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList10" runat="server" DataSource="<%#ItemList_hour%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList11" runat="server" DataSource="<%#ItemList_minute%>">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList12" runat="server" DataSource="<%#ItemList_second%>">
            </asp:DropDownList>
        </div>
        <div class="block" style="margin-top:10px;">
            <asp:CheckBox  ID="CheckBox3" runat="server" Text="是否是VIP专属" />
        </div>
        <label class="block">规则介绍：</label>
        <p>
            <textarea name="description" id="id_description" class="rte-zone" rows="15" cols="20"></textarea>
        </p>
        <script type="text/javascript">        $('.rte-zone').rte('CSS/rte.css', 'img/');</script>
    </div>
        <div class="oh z shadow">
        <span class="left ls"></span>
        <span class="right rs"></span>
        </div>
        <span class="abs msg-arrow a-out" style="margin-top: 0px;"></span>
        <span class="abs msg-arrow a-in" style="margin-top:0px; "></span>
    </div>       
    </div>
    </div>
    <p class="tc msg-btn">
        <asp:Button ID="Button2" class="btnGreen" runat="server" Text="提交" onclick="Button2_Click" />
    </p>
    </div>
    <div class="clr"></div>
        </div>
    </div>
    </div>
    <iframe id="addimg"  style="visibility:hidden;height:100px;width:500px;position:fixed;left:40%;bottom:40%" src="demoupload.aspx" >
    </iframe>
</asp:Content>

